package com.java3y.sso.handler;

import com.java3y.sso.annotate.InfrawInputRequiredCheck;
import java.lang.annotation.Annotation;



public class InfrawInputRequiredCheckImpl implements InfrawInputHandler {
    @Override
    public void  handle(Object o, Annotation filedAnnotation,String filedName, String ...str) throws Exception {
        if (filedAnnotation instanceof InfrawInputRequiredCheck && ((InfrawInputRequiredCheck) filedAnnotation).required() && o==null) {
            throw  new Exception("必须入力");
        }
        System.out.println("必须check过了");

    }

}
